import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
 
  {
    title: '文件名称',
    align: "center", resizable: true,
    dataIndex: 'fileName'
  },
  {
    title: '文件',
    align: "center", resizable: true,
    dataIndex: 'fileUrl',
  },
  
  {
    title: '文件类型',
    align: "center", resizable: true,
    dataIndex: 'fileType'
  },
  {
    title: '上传时间',
    align: "center", resizable: true,
    dataIndex: 'createTime'
  },
  {
    title: '上传人',
    align: "center", resizable: true,
    dataIndex: 'createBy'
  },
 
];

// 高级查询数据
export const superQuerySchema = {
  relatedId: {title: '关联的业务记录ID',order: 0,view: 'list', type: 'string',dictCode: '',},
  relatedType: {title: '关联的业务类型',order: 1,view: 'list', type: 'string',dictCode: 'file_business_type',},
  fileName: {title: '文件名称',order: 2,view: 'text', type: 'string',},
  fileUrl: {title: '文件存储路径',order: 3,view: 'file', type: 'string',},
  fileSize: {title: '文件大小',order: 4,view: 'number', type: 'number',},
  fileType: {title: '文件类型',order: 5,view: 'list', type: 'string',dictCode: 'file_type',},
  uploadTime: {title: '上传时间',order: 6,view: 'datetime', type: 'string',},
  uploadedBy: {title: '上传人',order: 7,view: 'text', type: 'string',},
  projectId: {title: '项目',order: 8,view: 'list', type: 'string',dictTable: "c_project_application", dictCode: 'id', dictText: 'project_name',},
  subProjectId: {title: '子项目',order: 9,view: 'list', type: 'string',dictTable: "c_sub_project", dictCode: 'id', dictText: 'sub_project_name',},
};
